<?php
class Shop_Product_Book extends Shop_Product{
	public $numPages=0;
	function __construct($title,$mainName,$firstName,$price,$numPages)
	{
		parent::__construct($title,$mainName,$firstName ,$price,$numPages);
		$this->numPages = $numPages;	
	}
	
	function getNumberOfPages(){
		return $this->numPages;	
	}
	function getSummaryLine(){
		$base = parent::getSummaryLine();
		$base .= ": page count - {$this->numPages}";
		return $base;
		
	}
	function getPrice(){
		return $this->price;
	}

}